package test;

import java.util.Scanner;

public class CharacterChecker {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入一个字符：");
        char character = scanner.next().charAt(0);
        if (Character.isUpperCase(character)) {
            System.out.println("大写字母");
        } else if (Character.isLowerCase(character)) {
            System.out.println("小写字母");
        } else if (Character.isDigit(character)) {
            System.out.println("数字");
        } else {
            System.out.println("其他字符");
        }
    }
}